Made sure that onError never blocks