Method invocation rootShell.close() at line 482 may produce java.lang.NullPointerException