fix status_msg and exception logging