Fixed redis measure destruction

- when connection is lost to the server, reinitiate the RecordService
- always check is the RecordService is running for the given Sensor
sendError in MailService and updated RecordService

- convenience function to send errors by mail
- simplified RecordService.recordSensor