Bug fixes

Fixes:
- Issue #1062 You have to disconnect all connections before closing QGC
- Issue#1015 There were still some loopholes in the log file save prompting code. If the settings was off, you would still get a message box prompt. Also by fixing Issue #1062 it closed the loophole of closing QGC not prompting to save log file on exit.