Correctly destroy opened context

Signed-off-by: Sven Strickroth <email@cs-ware.de>