Renamed EventListener to EventHandler and defined a type named EventHandler.
Added code for adding and finishing Tasks in TaskProcessors.
Removed task map from TaskProcessor.