Fire modal close event next frame. Fixes #199