Peer discovery integrated into GUI
adding code for shutdown sequence