BUG: Implemented try and catch in _trigger method to prevent socket error