Improve logging
Handle SIGINT and SIGTERM for graceful exit