This needs to be reset when ```close(boolean)``` is called.