titanic: Remove sys.exit in critical paths

Need to fix these issues later