- added more detailed logging
- now using wait/notify for stopping server (untested though)