app should handle SIGTERM like SIGINT. clean shutdown.
fix json test to handle explicit bool