fix

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