Added hook_uninstall

...ded debug_log calls in case of mail error.