clean up and resume