Implemented support for handling portlet shutdown and stopping LDAP
server