Issue #174: Fixed closing None-backend
Style fix
Fixed test
Fixed pylint test