Made dtors virtual, tested on IO and FMU