fixed: IDE: NPE on termination when running from command line