Added reset-functionality on quit