Error handling when connection failed to open.