parse connection error handling