Adding rescue to exceptions