automatically unregister as a trader in destructor