move sim_close outside of the spec namespace.