How to keep embedded database listening with Bolt

What is the suggested method for keeping a Bolt connector open for an embedded database? I see how to open a Bolt connector here (Bolt connector - Java Reference ), but the example just shuts the database down immediately. If I want to make use of the Bolt connector, what is the best practice?

So far I've experimented with registering a shutdown hook and then never explicitly calling a shutdown in my Java code. Then the database remains open and listening with Bolt at a specific port until I send a SIGINT to the process. Are there issues with doing this? Is there a better way?