fixed kobra exiting after timeout