infinite loop on error

Signed-off-by: nixnodes <code@nixnodes.net>