upgrading dependencies
logging pid and handling SIGTERM cleanly