As far as I remember traping signals available only on Linux machines.
Need to check and if it true add appropriate comment.