Stop all the services running in the container
when mandatory integrations are removed.
Currently the relation data is not cleared during
processing of gone away events. This is a bug in
juju reported at [1]. Due to this the relation is
still considered as ready.
Add workaround to check the event and mark the
relation to not ready if the event is gone away
event of the relation.
Catch database relation-broken event and block the
application.
[1] https://bugs.launchpad.net/juju/+bug/2024583
Change-Id: I80a0120d08b79561c13996c7a0f055824a1d5336