question: protected void shutdownImpl ( ShutdownModeAmp mode , Result < Boolean > result ) { Thread thread = Thread . currentThread ( ) ; ClassLoader oldLoader = thread . getContextClassLoader ( ) ; I oldInstance = _instance ; if ( oldInstance == null ) { result . ok ( true ) ; return ; } boolean isStopping = false ; try { thread . setContextClassLoader ( oldInstance . classLoader ( ) ) ; isStopping = _lifecycle . toStopping ( ) ; _lifecycle . toStop ( ) ; if ( ! isStopping ) { return ; } _instance = null ; oldInstance . shutdown ( mode ) ; result . ok ( true ) ; } catch ( Throwable e ) { result . fail ( e ) ; } finally { thread . setContextClassLoader ( oldLoader ) ; } }
target:  Stops the current instance.