Fixed small bug in NxsGetter.__exit__ and minor code style changes.