added mail handler for error logging