add close function to allow for proper terminating of log stash stream
move name to prototype level to fix log stash not finding protocol for removal