adds return if no files are selected/cancel is pressed in file dialog