Prevent some odd 502 gateway errors