Negative return value if this fails and stuff

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>