Added rescue to $? being nil