Close output buffer. Should fix UT on Travis.