Enter a compartment when calling timeout handlers.