Linux Web App - How to catch the kill signal

Normally, CancelClose should catch the terminate signal, right ?