Remove the working directory if no errors are detected