Handling of connect exceptions