[fix] listen to errors