Added the 'synchronized' modifier to close()
This should prevent a ConcurrentModificationException being thrown when the method is called from multiple callers.