Close the connection after test runs
Set up basic functions for message handling