converted into idea project and removed syncuninterruptably method call and added server close listener