fix: freeing ports; ports now properly deallocated after app crash or exit