curried the destroy function to try to provide sockethubId whenever possible
logging
improved tests, checking for destroy effectiveness