Remove working directory if no error occurred