q does not terminate a pdb session after hitting pdb.set_trace() in a session I am looking at. os._exit(0) worked