Fixes #19

Wraps all session using plugin calls in a decorator that automatically
closes the session and resets the context session state to None.