Fix segv when exiting in calc

Caused by resetting data when no claculator is loaded