fixed handling of  shutdown for timer events