Added 'handler' option

My intention was to implement an easy way to process possible attack attempts without a need for error handling - which would be a bit tricky due to their asynchronous nature.
can you undo all the added semicolons? the style here is no semicolons