Added code to pass on flight.err to err 

The flight.err was not seen by the logic in prepareStatement to purge the statement from the cache in the event the prepare statement query returned an error.

This is any attempt to resolve issue #227.