Removed study session on study close. Fixes #204.