When time ends it stops listening to events