Added support for 'kill' (includes tests).