Display openPort exceptions to users and log them to database.
Remove unnecessary perror messages from function openPort.