clean up the error