Fixed bug in console layout that was preventing it from closing.