Putting killing of agent process in try/except block,
because I've come across cases where the agent failed
to start up, but KeyModel still tried to delete it,
and then threw an exception.