ensured proper cleanup for stateful beans