@kriskowal, @domenic's latest example will have issues in some browsers. (When an error occurs)

see: http://bugs.jquery.com/ticket/9033 for a detailed explanation.