Added nanosleep after creating sig handler to allow bb to register it before arming the timer