Return Popen instance from spawn_subprocess
Close connection on finalization