Pop-up doesn't close

I am taking a look right now. But have you thought about doing this using the new interactions rather than legacy?

EDIT*
Using the new interactions works perfectly when I recreate what you are trying to do.