Registers.m was not properly closing the port when finishing.