FIX: Remove unused import and some unused variables.
FIX: In LanternaUI, fix NullPointerException if interavtive mode is not enabled.