Set the res and bit rate in the dynamically
Close the connection and log when connection goes away