don't keep references to `commander` and `options` when they are not needed any more
don't use Java 7 features
cleanup Write