Close if no file path is supplied