Added sigterm handler to keys app