[PDI-11104] - Invalid Send message to Syslog step runs forever unless tr...

...ansformation is closed.

* Added for NPE during dispose method. Have no ability to close in right way as exception is in thirdparty library
* Added unit test