Fix the order of unregister timed output device