Make use of tail --pid rather than a later kill.