Kill process after its done

Kill process after its done even if print_log == true.