emit warning message when releasing explicitly doesn't be done
reduce warnings of mock and leaks