Removing streams
Remove stream approach, bugfix of crashing program when connection is reset