Close sessions when doing background jobs
Merge pull request #2387 from owncloud/cron-session-close

Close sessions when doing background jobs