oc-sogo: Move memory clean up *after* handling the exception

Otherwise the mess is full :)

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>