Found this interesting article by our very own Akuma99 and I learnt a couple of things out of it...

One thing just blew me away... so easy why did not I think about that.

http://akuma99.blogspot.com/2005/11/...n-to-exit.html