catch possible exceptions thrown by plugins
send the client object to the plugins