On hybrid systems and closed-loop MPC systems