It's probably OK to close the client session immediately as it is triggered at the end of the build.