catch error when no permission on port