fixed stderr output and added a check for when exceeding MAX_CLIENTS