added a method to clear all actions and cancel any in-flight action