Move log directory cleanup into a separate process, so it does not slow down the main processing