Fixed issue with Pen script not quitting on logout.