curvetun: Added graceful handling of SIGTERM signal

This allows friendlier termination of the curvetun daemon,
using kill -9 gets a little harsh (and leaves lock files
lying around).