Added timeout waiting for pongs