Improve octave login
Summary: Before, when we work with octave and use 'Restart Backend' button, we suddenly get foreign output. So this commit fix it by adding backend cleanup of inner state in logout.
Test Plan:
- Run octave backend without patch
- Write some entries and run they
- Reboot octave backend by the button and check, that the output changes
- Apply patch
- Check, that now all fine.
Reviewers: Cantor, asemke
Reviewed By: Cantor, asemke
Differential Revision: https://phabricator.kde.org/D12565