exit;
die( "Could not execure query" );
This is useful in
... do_something( ... ) || die( "Failed doing something" ); ...