Clean up error after emitting it
Otherwise you can't have mutliple errors in a command because it would only show the last one.