removed return after throw
added attempt to create logs directory