Added code to remove the captive rat when it is triggered