Make sure to return when errors happen