Bugfix retry logic
Add dummy signal handler for SIGUSR1 to interrupt sleep