Modification to checkWait to success fast and fail after the check wait time