modify log
add process exit