Fixed issue with focus and key of output dialog

On simulator start the focus of the output dialog was on the text field
and the window could not be closed with "space". Also the key listener
to clsoe the window with "enter" was broken.
Made exit dialog optional
Using TmpFileCleaner for file clean uo