Corrected connection dying when app is in background

Signed-off-by: Cory Feitelson <cfeitelson@roovy.com>