Fix open stream leak.