fixed nullpoint when repository could not be created, it cannot be
stopped