Add check of exit status for callbacks