Move events responsability from TasksQueue to a TasksHandler class