drain connections on app update