No but will need to add:

conn = get_conn(get_location()) after the deploy = line

And again in the stop method

Also we can remove the conn = None at the top of the file

And change the log entry to debug on line 112