Throw exception instead of creating invalid object when remoting is disabled