Hi Amol,
If you go with a custom adapter module you would have to execute the logout as the primary service call and use the custom module to execute the first web service. Out of curiosity however what is the overall design? And how come the client is not simply making two successive web service calls based on the requirement?
Regards,
Ryan Crosby