Throw an exception instead if PHP can't connect