Added support for performing some immediate action instead of proceeding with the given plan (in Planner.nextAction)