update usage message
small code cleanup
small code cleanup
embedded server: new property option 'maxCheckTimeMillis' to stop checks that take too long
fix the handle count which could become invalid