Set error variable in rescue
Fix typo
Close databeses after using :scream: