added check to see if server is running out of memory and chill the hell out if it is