Handles Android's activity lifecyle for rxjava's Observable