Add quit dialog, exit failure, fix warning of g_signal_connect