Add queuecomplete to the list of available events and fix a typo in the error handler

Fixes #674.