Temporal regulation of the Mus81-Mms4 endonuclease ensures cell survival under conditions of DNA damage