Error Handling Member Functions

_handlingException(scalar exception)
Handles exceptions by writing to the logfile and sending the user the error, if needed.