Video refresh on disconnect - Linux

Can not avoid video refresh after disconnecting any of Nvidia’s video outputs on Linux?