Closes a currently opened modal overlay.
Does nothing if no modal is currently open.
Emits events up:modal:close and up:modal:closed.
See options for up.animate()
A promise that will be resolved once the modal's close
animation has finished.