Fix a bug where the connection state was throwing an exception after having been disposed.

http://msdn.microsoft.com/en-us/library/system.data.idbconnection.state(v=vs.100).aspx suggests that the state property should be readable even after disposing.
Add test to PR #164
Merge pull request #164 from Oipo/master

Connection state throws error incorrectly