Fixed NPE in sethome command.

And remove useless static logger.