Fixed after review
- Added synchronized method close
- Added test in LifeCycleModuleTest