Added an error clause for ftry