Modal popup, ionic select-options modal are not dismissing when device screen lock

Each time when user lock the device application is navigate to a pin login page. If the user locked the device with modal window, Should not see the modal popup when he unlock the device. But I am facing an issue on this. application is navigating to the pin login screen but modal window still exists.