Correctly handle timeouts to trampoline