timeout correction on openPort