[fix] callback as optional error handler