adding stop callback to transaction perform method