Merge pull request #70 from maselvaraj/master

Fix for race condition during scheduler registration when there are multiple builds on queue.

Fixes #43.
Make sure Jenkins is not in safe shutdown mode before provisioning