How to make gracefully docker stop to PS script or exe process

Hi All

I have an windows container that run a PS script starting .NET application :
“Docker run -d -v c:\set:c:\set test-image C:\set\launch.ps1”

##Start launch.ps1##

Start-Process C:\set\DockerPoc.exe -Wait

##End launch.ps1##

I tried also to run the docker directly with “Docker run -d test-image C:\set\DockerPoc.exe”

But when I am running “docker stop” it’s not do it gracefully.

It’s very important that when I use docker stop it will close my DockerPoc.exe gracefully and finish the last job.

Docker Version:

Client:
Version: 1.12.2-cs2-ws-beta
API version: 1.25
Go version: go1.7.1
Git commit: 050b611
Built: Tue Oct 11 02:35:40 2016
OS/Arch: windows/amd64

Server:
Version: 1.12.2-cs2-ws-beta
API version: 1.25
Go version: go1.7.1
Git commit: 050b611
Built: Tue Oct 11 02:35:40 2016
OS/Arch: windows/amd64

any advice?