use finally, and do not use request to call the plugin

Change-Id: Ief29f75c75d0730d72f13d1dad3dd84ffca40ea2