Add #stop method to close backend connections

Adding more integration tests was causing the Postgres tests to fail
since Postgres.app can only handle 20 connections. Instance now
has a #stop method that will close its backend's connections gracefully
and stop any listener thread that may be running.