raising errors happening in co-routines