fix for get defer close server