The court shall have authority at any time prior to the entry of an order terminating probation to (1) revoke, modify, or change its order of suspension of imposition or execution of sentence; (2) it may at any time, when the ends of justice will be subserved thereby, and when the reformation of the probationer shall warrant it, terminate the period of probation, and discharge the person so held.