Fixed inconsistent import of reactor
Added missing delete_buf event handler