[4.2] Fix for #5937 Connection::run breaks transaction logic when connection lost inside transaction.

This PR provides demonstration and fix for issue https://github.com/laravel/framework/issues/5937.