Just use the Linux / unix kill Command. It is important that the SIGTERM option is used.
kill -SIGTERM pid