Add the signal trapping on library load