Why Does My MBA Close All My Apps After 5 Mins Idle?
Looking true your log, I would say it is your Sophos acting up.

SophosUIServer

Uninstall it and live without it. 

It does not do any good anyway AFIK.