Not compatible with iOS 5
Safari Tab Closer is a small utility that lets you quickly close all of the open tabs in Mobile Safari.
To activate, press-and-hold the tabs button