Fixed device validation for MAC OS. Added space and same special characters as valid.
Modified try-catch blocks in closePort function.
Added known serialPort.close exceptions.
Added notification when exceptions are thrown.