implement rescue to stop DocumentNotFound Error