* better handling of shutdown in thread-based tick timer

added a few assertions to make sure