Trying to get the try/catch working correctly