Mail notification

1) Added a rescue error handling block in a model for record not found exception.
2) Also modified code in the Server model.