Each reader is now locked during door opening, corrected memory leaks