Make sure to stop all media streams when closing connection