Cleanup logging in mqtt example. Added semi-colons and cleanup of lib objects