[PATCH 3/5] nettestctl: Catch known errors and terminate correctly