added test
interface cleanup
fixed blocking at shutdown