Don't catch Exception as it hides any possible cause of trouble in the user code.