preCommandHandler

If the command returns false, then the command event will not be
emitted.