Cleans up slice and normalizes error throwing