Just wrapping things in a try-catch block, as these calls can throw.