Ensure server doesnt hang