Catch IOException if hudson.Extension (or similar) doesn't already exist.  Also, print stack trace if something goes totally awry.