cleanly close all connection when leaving a room page