Close all frames when I logout

I have three frames in a application. When I logout from the application, It just closing the content frame. Top frame and left frame content is still showing when I login back. How should I close all frames when I logout?. Anybody help is greatly appreciated.

Thanks