we also need to make sure the headerBlock is released when a connection is closed because of an error. Just remember this.