Critical bug fix: preventing getting stuck on select() forever at shutdown.
Better unit tests layout. Now running tests when installing via setup.py.