Fixed Terminal Leak.