clean buffer after exception in route