Exception handling/clean up
Dynamic ports are loaded correctly by GUI--phase one, ordering starts from 0.