Deallocate port before trying to delete iptables chain

Problem was that if there is some error on chain delete, then we don't deallocate port in portallocator.
Fixes #7954