Pass termination parameter correctly.

Before it was not used, now it is passed to the build command function.

Sorry, don't know how to push the rebased branch properly...