callback on error and when done selecting