Added the exit code to the finish callback