Update lib/anvil.js

Found a couple of small issues with `anvil.stop`.