Signal: if write fails, print error

Signed-off-by: Eduardo Silva <eduardo@monkey.io>