#16 Java exception when trying to relaunch system after log off.

Fixes #16