Error Handling added to EmailHandler