add setsid
reorder setsid and kill