close the Collaboration connection when we leave the editor