Fixed multiple connections

- Cleaned up logging