Close streams when shutting down session.