Connection was closed by server

I am using Node JS neo4j.driver library for connect database using "bolt://localhost:7687" protocol.

Some time I am getting "Connection was closed by server" error in console.