Change the success variable of an event from a boolean to a success code. Correctly update the dispatcher queue whenever an event is finished.