better request termination for attachment upload