Shutting down tick thread properly.