wrap cancelTask call in a try to protected against the exception it may cause due to mixed metrics versions.
build change
revise log message to use exception message.
getGroups() for GroupManager should return an empty array instead of null. Fixes #89.