removed assertions
removed assertions, dummy printfs and handled multiple termination of servers