Save config on quit + fix tab close PM