With close.js, you can close an iOS web app right from javascript! Just use the closewebapp() function.