St. Mary's get reprieve from closing