make exec command return exit_code