Fixed crash on self-closing agent.
Bumped v0.4.1.