Made observers clean up when closing down.