Catch errors in client modules

Errors while importing client modules are now catched and logged, but do not crash the whole application.