lame work around for unload not firing in safari