Tighter control over work submissions in avalon allows us to use a smaller array.
Shut down avalon read and write threads and idle the miners on closing it.