Sleep if exit abnormally