Fixes issue with serial port logging availability

If the configured serial port is not available logs the exception
instead of causing the program to terminate.