Change the way connection.destroy is defined