Added setting stdout to a write nothing outputstrema in the case of DEBUG being false