Some fixes to the stm adapter, including closing of the client configuration object at the end of a successful method run
Merging conflicts