Fixes #9: X button closes modal