added clean method for manual cleaning
added error catching