Fix the timer tasks cancel.
Fix getwork job no more updated after a while. Several Getwork
connections where created when getwork requests are received in burst.
Update licence headers