Keep self reference until protocol is closed

probably fixes issues 11