Partial implementation of pause, resume and kill.