public final Workbench getWorkbench() {
        return workbench;
    }
Gets called when this module is explicitly being closed by the user in the toolbar.

@return true if the module should be closed, false if the module should not be closed and the
closing process should be interrupted
@implNote <b>Lifecycle:</b> When {@link Workbench#closeModule(WorkbenchModule)} is being called
on an active module, {@link #deactivate()} will be called before {@link #destroy()}
is called. In case of an inactive module, only {@link #destroy()} will be called.
<br>
<b>Return behavior:</b> Assuming Module 1 and Module 2, with both being already
initialized and Module 2 being the currently active and displayed module.
When calling destroy() on Module 1: If true is returned, Module 2 will be removed
and Module 1 will be set as the active module. If false is returned, Module 2 will
not be removed and Module 1 will be set as the new active module, to enable the
user to react to the interrupted closing of the module.
@implSpec To implement an asynchronous, controlled closing of a module, execute the immediate
action (e.g. open a dialog) and define the asynchronous behavior in advance to call
{@link #close()} (e.g. define pressing "Yes" on the dialog to call {@link #close()}).
Then <b>return {@code false}</b>, which prevents this module from immediately getting
closed and causes this {@link WorkbenchModule} to get opened, so the user can react.
<br>
Example:
<pre class="code"><code class="java">
          getWorkbench().showDialog(WorkbenchDialog.builder("Confirmation", "Close Module?",
                                    WorkbenchDialog.Type.CONFIRMATION)
                        .blocking(true)
                        .onResult(buttonType -&lt; {
                          if (ButtonType.YES.equals(buttonType)) {
                            // yes was pressed
                            close();
                          }
                        }).build()
          );
          return false;
          </code></pre>
workbenchfx-core/src/main/java/com/dlsc/workbenchfx/model/WorkbenchModule.java