ActionFinish in the API

Last mile of the ActionFinish function to the API
trivial quibble: `result` or even `actionResult` would be a nicer var name I think