Dissipation and quantization