Fix for auto_thread restarting and added throttle control to block_until_state