Fix issues with closing the interface and rogue threads not getting stopped. Added transaction operations.