Perform clean up at the end of the tests. Also reorganized setup/teardown in env_* files in a similar way proposed in dnsrecord module.