fix status_msg and exception logging
Merge pull request #4 from laistu/master

fix status_msg and exception logging