Exit with code as same as main container