Added automatic object unlocking upon logout