Fixed not disconnecting on window close
Modified removed exit button