Solved the BROKEN PIPE exception