Fixed closing connection errors.
Merge branch 'master' of https://github.com/pachalad/391

Conflicts:
	update_picture.jsp