Raising generic exceptions if the underlying wait call times out