Destroys mouse callback after contour selection finished