fix to persistent alert closing. closes #36