fixed some exits exceptions