Force gen_server to terminate cleanly.

WORKAROUND THAT FIXES CONNECTION LEAK!