Ca 113542

Fixes zero length logfiles and disk filling up.