try to close all streams as soon as possible to prevent leaks (inserting large sites...