throw exception when timeout