preventing bucket error causing server halt