Catch unknown select exception for transfer and command sockets
Wrap tls sockets on a per client basis
Files fixes and logging tweaks
Log all uncaught exceptions to logfile
Merged exceptionlogging