add NoConnectionsException and throw in appropriate places