Close listener session at listener if error