Exit the script when a pledge slot is found

The "break" statement no longer works because now it's inside a for-loop,
instead of being inside the main while-loop.  Change it to a sys.exit().

Signed-off-by: Timur Tabi <timur@tabi.org>