make MicroActor safer

* initialization inside its thread
* clean shutdown
* terminate pooling server after all tests