human
Solve the following python programming problem given the following code:
def _start_livy_server() : 
    import atexit 
    import subprocess 
    import sys 
    import time 
    p = subprocess.Popen ([sys.executable, sys.argv [0], 'dbproxy_server']) 
    def cleanup() : 
        p.terminate () 
        for _ in xrange (5) : 
            if (p.poll () == None) : 
                time.sleep (1) 
else : 
                break 
else : 
            p.kill () 
atexit.register (p) 

    
    

    Fix the buggy line: atexit.register (p)
assistant
#Here is Python code to fix the buggy line: atexit.

atexit.register (def cleanup()