Remove old jobs
kill processes after they are done processing
Move all event processing to processEvents