switch HandleSignedHeartbeat to return (err error)

This makes it possible to call statements like 'defer print err'