on_exit instead of on_enter