cleanup and spin_timeout option to 10 ms