By default, you can’t close Spotify by clicking the cross in the top right hand corner. To close Spotify, instead right click the Spotify icon on the task bar and click quit. Unfortunately, I’ve been unable to find a setting in Spotify that sets the cross to close it instead of just minimize.