remove try/finally for alerts