clear the session after generating a module - Fixes #14