I've had this problem to but unlike OP i couldn't logout i had to alt-tab out and either close net7-proxy (force disconnect) or use taskmanager to force shut down game.
I found and workaround though if exiting the jobterminal now & then it won't happen as it mainly seams to happen if "beeing" in there for to long and "to long" can be varius but i mainly encountered it when waiting for jobs to respawn, which i belive is on 5min timer.
I think this have to do with that something times out due to "inactivity" as i can get similar problems beeing in refine/manufactoring/analyze terminal or just standing in a station doing nothing, though while just "standing" in a station you can still move around use chat but as soon as using a terminal, trying to talk a npc or exiting station it will "freeze".