Locking the screen closes all open applications

That would be your whole session crashing.

Please provide logs as outlined here: