throw runtime exception in case of connection issues