Your comments

Logoff will close any user spawned processes, while locking will keep them active.

This presents a potential security risk, depending on the environment.

I would like to add that this feature would be great to have.