Custom Deadline Events not executing

@mois.moshev Yes, it is on linux.
@karpreet Actually the problem is that the event is sometimes not executed after the last task.