exit process, execute the function print_status