Make IModel throw AlreadyClosedException when already closed

This is how Java client works.
Make AlreadyClosedException message clearer
Assert that AlreadyClosedException message contains the prefix we want
Merge bug26071
Merge bug26068