printing stack trace for error and not ignoring it