check if _stdout_buffer or _stderr_buffer are None