fixes #4. Adds try/catch for loading client code