Make portkill more robust.