opening a non existent serial, throws an exception trying to close a non opened port!

Calling `.close()` on a closed port, raises an exception. This happens when you try to open a non existent port. This patch fixes.