Fix SIGTERM handler to clean up pidfile

This also bumps the version to 1.2.1 for this fix.