We currently just attach the PID to the context and then try to kill it from that with very little done in terms of error hsndling. Improve.