finish transferScript