Video 30 completed - Implementing the closeConnection Function