better collector's error handling