Add exit code to status command