public synchronized void stop ( ) throws IOException { if ( uploaderThread == null ) { throw new RuntimeException ( "Not running" ) ; } uploaderThread . interrupt ( ) ; uploaderThread = null ; fileUploader . shutdown ( ) ; }
Stop background storage management .