added method to stop active encodings