Add handler for initial connection errors