Added error handling to the CouchPotato plugin