Fixed connection error detecting
Fixed code formatting
Added no-ping connection pool class