tosulliv: added sensor reading duration to preferences screen. Added
functionality to cleanly close the Bluetooth receiver and the associated
connection on page swipe or activity exit.