handle setting Widget.comm = None

which is done in `Widget.close`

fixes loads of warnings in widget test output, caused every time a widget is closed.