Battery safety design