Fix leak of MMTerminalConnection and MMTerminalWindowController.