properly ending inner and outer streams (user and pack)