Return if command should not be executed

Return from the void if the command should no longer be executed to avoid exceptions and unnecessary messages to the player.