Added more error states and removed global error_connection