Exit on close and few gui improvements for manual connection