Pass the exit code to end cb