Minor doc fixes, fixed server close code.