Fixes for dialog options - now saving to AppData. Prompt on close working better. Removed logging code from Release build