listener class has try catch