Revert "Remove pointless if block from sighandler"

This reverts commit 8207ac21891154a7693d19d9258815bffc3f3555.

because the diff will look nicer without this