fixes to kill() and join()