Renamed pollForStatus to createStatusPollFunction, fixed misplaced property (statusResultSuccess and statusResultAbort were not generic enough)