Modified DocIDServer to test for null on close()