solved issue with not handling error signals