Print stack trace if connection fails

Useful for Linux