... if( ... ) { goto ERR; } ... if( $fatal ) { ERR: ... clean up after fatal error ... }