removing redundant process exit and callback()