Catch general exceptions to account for weird behavior in modules