moved releaseServer function to initializer
refactored jobsComplete with promises