Close modal on success