disable modal close button when downloading