Throw error when non-existing directory is used for the listener.