added check if user aborts, or path is not given