Update discharge controller cancel() with new BS 3.0 syntaxes.