piepan.Disconnect will now cause piepan to exit gracefully