Close all input streams after parsing templates.