Exit cleanly when SIGTERM is intercepted

Docker-DCO-1.1-Signed-off-by: Alexander Larsson <docker@nfnty.se> (github: nfnty)