Fixed connection refused crash