Various minor fixes:
- better exceptions for faulty temporary directories
- better exception if client can not connect to JobManager