catch exceptions and always remove remote in `mkremote`