Fix a memory leak in relay::terminate.
Fix a possible exploit. Zero memory allocated by databuffer.