The kill is strange, and could be arguably an upstream bug, but it is well commented, fine.