Fire sigterm before sigkill to a remote shell command that has timed out

This patch addresses ticket 751: http://trac.buildbot.net/ticket/751