This commit removes the for loop in the closeObserver, as it wasn't serving any purpose. After receiving a spend notification we would return, breaking out of the loop. When getting a quit signal we would also return, making the loop only do one iteration in any case.