Fixed a bug that caused a segfault on stopping playback with minimized