Check if error occurs when waiting for completion.
Unsynchronize wait for start and end.
Refactor wait for start.
Synchronized is expected for wait notify to work.
Merge pull request #59 from romainreuillon/waitForEnd

Check if error occurs when waiting for completion.