Closing the annotation dialog