Just dump the methods into a try-catch block.