Automatically close conn-mgr and response when entity is closed