added end session button, attempts to clean up p2p connections