use task.process_event in cleanup_after_timeout

Change-Id: Ie47eb70d4100f7a7deb6a18867ec98f87041b500