corrected minor grammar error. added closeRequested loop to server to allow for unknown commands