Code clean up.
Remove unnecessary replace current content controller method.
Fix closing sequence in main window game emulation.