feat(Error handling): modal doesn't close on save