Connection::executeAnonymousQuery throws exceptions