still not working on windows. made sure that all streams are closed.