Fixed cleanup script to properly cleanup created instance