Fix app crash on COM close

BMP180Example improved