Close streams in finally-blocks