Logging improvements

Signed-off-by: Ozan Turgut <ozanturgut@gmail.com>
Added error checking at the bin level

Signed-off-by: Ozan Turgut <ozanturgut@gmail.com>
Better error handling

Signed-off-by: Ozan Turgut <ozanturgut@gmail.com>