Call stop! only when the agent is running

this raised error when the agent is killed (e.g. propagated ^C)
Bump version v0.2.1