Throw MainException to upper level