"error" event already triggered when child signaled