cleaner way of handling errors while opening port
updating changelog
only save last used port if "connect" was valid