Issue with Focus Item

Have added a form which downloads an asset in Focus Item (Modal).
After a user downloads the asset the focus item widow should go away, but in my case it remains on the same page and user have to close it manually.


Does any one have solution for it?