clean at normal exit, abnormal exit and can be forced from java ui by clicking exit