add try / catch in event trigger