Exists with correct error code in case of fatal exception.