addRepositoryToDatabase based closing modal Incase error event a message can be shown inside the modal. Reference: https://github.com/gitthermal/thermal/pull/3599