sunos: handle rearm errors

fix #1078