Automatically remove subapps when their owning session finishes