Music stops when window is closed