Check the list of supported backends
Code that uses the database backend may default to using cached prepared statements, this uses a timer thread to free the connections and therefore delay the end of the application (the default is set to 30 seconds)
Try the main faq or drop us an email