clear the maxWait timeout event when setWait calls finalize

this was causing my app to hang and not terminate.  i was just building a few servers and then waiting until they finished, and wanted to just exit after that.  this patch solved it for me.