Manager finalize context function

Change-Id: I5d9b0fc869d2e3bbd5d46850aa6f740275391cda
Signed-off-by: TanelDettenborn <tanel.dettenborn@gmail.com>