Disposing stream and commenting on thread safety