Prevent "Unhandled stream error in pipe" when compilation error occurs.