Error handler

Add a `:handle-exception` handle which is called in case of an exception happening.