Provided is a medical system comprising a controller unit configured to be capable of generating a first code or coded message; and a medical device unit configured to be capable of generating a second code or coded message, the medical device unit configured to be in electronic communication with the controller unit, wherein the controller unit is configured to lock the medical device unit from being used or reused if the first code or coded message does not match or is not identical to the second code or coded message. Also provided is a method of preventing use or reuse of a medical device unit as described herein.