1. A system comprising: a removable data storage device comprising: a data storage medium; an interface adapted to communicatively couple the removable data storage device to a host system and to transport interface commands and information between the host system and the removable data storage device; a controller adapted to store data from the interface to the data storage medium and retrieve data from the data storage medium; a script interpreter within the removable data storage device and coupled to the controller for processing scripts within the removable data storage device based on one or more received interface commands, the script interpreter adapted to: enforce a strict ordering of script execution; and terminate script execution and undo any changes associated with the script execution if an interface command invokes a script in violation of the strict ordering.