Support of exeptions in main module