added possibility to execute code after error has been saved
set handled to true to prevent interrupting reporting process and on complete shut down app