This is bad.

Using a try...catch because if no hooks module path is provided, we still have to execute. We can not conditionally require a module without if none is provided. This will silently swallow an invalid hooks module path. Any suggestions to improve this would be greatly appreciated.