First run the function, then return the exit code. Fixes #206.