catch exceptions when trying to create pid-dir
try to create log-dir as user