refactored machine to use once instead of on for state destroy event;
increased max listeners for State;