cosmetic: add curly braces
Fix bug when main is not a signal