Bugfix.
base64
Close connection.
Clean up.