added server resources releasing