listener: close the connection when the process goes down
listener: add options fetching