catch signal with error message