Fix: Proper connection error handling in init