Improve error handling

Can now cope with loosing a sensor while recording a log.
 Also detects when a sensor comes back on-line and resumes reading said sensor