Fixed a socket leak
Fixed some trailing whitespace
Remove input_buffer instance variable