net/mlx5: fix exception handling