added try catch for chan plugin