exit peerflix when video app is closed and when ctrl-c is pressed