changed naming convention to swanbox and handle host disconnects