 			json:
 				name: tagName
 		}, (err, res, body) ->
-			return callback(err) if err?
+			if err
+				logger.log "Failed executing create tag health check"
+				return callback(err)
 			if res.statusCode != 200
 				return callback new Error("unexpected statusCode: #{res.statusCode}")
 			logger.log {tag: body, user_id, project_id}, "health check created tag"
 			tag_id = body._id
-			
-			
+
+
 			request.post {
 				url: buildUrl("/user/#{user_id}/tag/#{tag_id}/project/#{project_id}")
 			}, (err, res, body) ->
-				return callback(err) if err?
+				if err
+					logger.log "Failed executing create project in tag health check"
+					return callback(err)
 				if res.statusCode != 204
 					return callback new Error("unexpected statusCode: #{res.statusCode}")
-			
+
 				request.get {
 					url: buildUrl("/user/#{user_id}/tag"),
 					json: true
 				}, (err, res, tags) ->
-					return callback(err) if err?
+					if err
+						logger.log "Failed executing list tags health check"
+						return callback(err)
 					if res.statusCode != 200
 						return callback new Error("unexpected statusCode: #{res.statusCode}")
 					hasTag = false

buildUrl = (path) ->
	"http://localhost:#{port}#{path}"

module.exports = 
	check : (callback)->
		project_id = ObjectId()
		user_id = ObjectId(settings.tags.healthCheck.user_id)

							break
					if !hasTag
						return callback new Error("tag was not found in response")

					request.del {
						url: buildUrl("/user/#{user_id}/tag/#{tag_id}"),
						json: true
					}, (err, res, body) ->
						if err
							logger.log "Failed executing delete tags health check"
						callback(err, res, body)
