finishSync on error as well as success.