Automatically disconnect when activity pauses.