close streams on init error