Close event action for "x" in modal

this is a small change to catch the close event and close the modal when someone clicks on the x that was implemented in the style-guide corrections for the storage-client